<?php

namespace app\controllers\h5\mini;

use app\controllers\h5\base\H5Controller;

/**
 * wx mini image
 *
 * Class ImageController
 * @package app\controllers\h5\mini
 */
class ImageController extends H5Controller
{
    public function actionGetMainImage()
    {
        return $this->successEncode([
            'search' => '/mini/search.png',
            'back' => '/mini/back.png',
            'more' => '/mini/more.png',
            'bg' => [
                'home' => '/mini/bg/home.png',
                'search' => '/mini/bg/search.png',
                'user' => '/mini/bg/user.png',
                'center' => '/mini/bg/center.png',
            ],
            'detail' => [
                'home' => '/mini/detail/home.svg',
                'fav' => '/mini/detail/fav.svg',
                'fav-active' => '/mini/detail/fav-active.svg',
                'cart' => '/mini/detail/cart.svg',
            ],
            // 导般重新定义
            'nav' => [
                // 'title' => '/mini/home/title.jpg?t=1',
                'left' => '/mini/home/left.jpg',
                'right_top' => '/mini/home/right_top.jpg',
                'right_bottom1' => '/mini/home/right_bottom1.jpg',
                'right_bottom2' => '/mini/home/right_bottom2.jpg',
            ]
        ]);
    }
}